package demoStudent;

import java.util.Scanner;

public class DemoAnonymous {
    public static void main(String[] args) {
        //匿名对象的使用

        new persion().name = "小明";
        new persion().sayHello("小明");
        System.out.println("请为num输入具体的值：");
        int num=new Scanner(System.in).nextInt();
        System.out.println("num="+num);

    }
}
